var express = require('express');
var sql = require('../sql/index');
var Pro = require('../sql/col/Pro');
var router = express.Router();

router.get('/list', (req, res, next) => {
  sql.find(Pro, {}, { _id: 0 }).then(data => {
    res.send({
      code: '200',
      message: 'reactAdmin-获取产品列表',
      data
    })
  })
})

module.exports = router;